Hello, |
Re: How to type cast from absolute number to string
Hi,
Object o = current
if (null o) {
print "no object selected"
}
else {
string sID = identifier(o)
string sAbsNum = o."Absolute Number"
print "Object identifier: " sID "\nAbsolute Number: " sAbsNum""
}
To get a handle on an object use:
Object object(int absno[,Module m])
Item it=item("Path of module")
Module m1=module(it)
Object o_target=object(8,m1) // get a handle on the object with absolute number 8 in module m1
|
Re: How to type cast from absolute number to string Johnny_P - Mon Feb 04 04:45:38 EST 2013
Hi,
Object o = current
if (null o) {
print "no object selected"
}
else {
string sID = identifier(o)
string sAbsNum = o."Absolute Number"
print "Object identifier: " sID "\nAbsolute Number: " sAbsNum""
}
To get a handle on an object use:
Object object(int absno[,Module m])
Item it=item("Path of module")
Module m1=module(it)
Object o_target=object(8,m1) // get a handle on the object with absolute number 8 in module m1
Thanks for replying. I have also done same thing. I came to know this solution just after posting my question. Thanks a lot! Regards, Hemlata |